<!DOCTYPE html>
<html lang="en">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
      name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
    <meta charset="UTF-8">
    <title>人员轨迹-百度验证码</title>
    <script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
    <script src="/dist/plugins/vue/vue.js"></script>
    <style>
        [v-cloak] {
            display: none;
        }

        * {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        table {
            border-collapse: collapse;
            border-right: 1px solid #cbcbcd;
            border-bottom: 1px solid #cbcbcd;
            margin-left: 0;
            margin-top: 0;
            margin-bottom: -1px !important;
            margin-right: 0;
        }

        th, td {
            border-top: 1px solid #cbcbcd;
            border-left: 1px solid #cbcbcd;
            color: #333;
            font-weight: normal;
            /*line-height:24px;*/
            padding-top: 4px !important;
            padding-bottom: 4px !important;
        }

        th {
            background-color: #F8F8F8;
        }

        .table-border-right-none {
            border-right-width: 0px;
        }

        body {
            margin: 0.01rem;
        }

        table.text-center, table.text-center td, table.text-center th {
            text-align: center;
            font-size: 12px;
        }

        table td {
            padding: 0.05rem 0.02rem;
            position: relative;
        }

        .table {
            width: 100%;
            max-width: 100%;
            margin-bottom: 0.2rem;
        }

        .hidden {
            display: none;
        }

        table input {
            border: none;
            width: 100%;
        }

        .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
            /*padding:0 6px;*/
            height: 24px;
            vertical-align: middle;
        }

        .content {
            padding: 0 0.04rem;
        }

        .tit {
            background-color: #f8f8f8;
            line-height: 0.24rem;
            height: 0.24rem;
            font-weight: bold;
        }

        td.bd_none {
            padding: 0 !important;
            border: 0 !important;
            border-width: 0 !important;
        }

        .td-value {
            text-align: left !important;
            vertical-align: middle;
            word-wrap: break-word;
            border-bottom-width: 0px !important;
        }

        .td-value span {
            display: inline-block;
            max-height: 0.56rem;
            overflow: hidden;
            padding-left: 0.06rem;
            word-wrap: break-word;
            color: #2a8cec !important;
            border-bottom-width: 0px !important;
        }

        /*input{*/
        /*word-wrap: break-word;color: #2a8cec !important;*/
        /*font-size: 12px;*/
        /*}*/
        .jiaobiao {
            position: relative;
        }

        .jiaobiao i {
            display: block;
            width: 0;
            height: 0;
            border-width: 0 0 .12rem .12rem;
            border-style: solid;
            border-color: transparent transparent transparent #2a8cec;
            position: absolute;
            top: 0;
            left: 0;
        }

        /*自动补全样式*/
        .wyui-autocomplete-panel {
            width: 250px;
            background: #fff;
            border: 1px solid #a0a0a0;
            border-radius: 3px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            position: absolute;
            margin: 0px;
            padding: 0px;
            display: none;
            z-index: 9999;
            overflow: auto;
            overflow-x: hidden;
        }

        .wyui-autocomplete-panel ul {
            margin: 0px;
            list-style: none;
            text-align: left;
            width: 100%;
            padding: 2px 0;
        }

        .wyui-autocomplete-panel li {
            list-style: none;
            text-align: left;
            padding-left: 2px;
            cursor: pointer;
            line-height: 24px;
        }

        .wyui-autocomplete-panel li.hover {
            background-color: #e6f2fa;
        }

        .wyui-autocomplete-panel li a {
            color: Black;
            text-decoration: none;
            text-align: left !important;
            height: 20px;
            line-height: 20px;
        }

        .wyui-autocomplete-panel li a:hover {
            text-decoration: none;
            color: Black;
        }

        button {
            display: flex;
            align-items: center;
            text-align: center;
            padding: 0.02rem 0.06rem;
            margin: 0.2rem auto;
        }
    </style>
</head>

<body>

<section class="content" id="app" v-cloak>
    <h3 style="margin-left: 30px">1. 登录人员轨迹百度账号</h3>
    <div style="margin-left: 60px">
        <span style="color: #666666;font-size: 16px">账号 : 17835131136</span> <br/>
        <span style="color: #666666;font-size: 16px">密码 : skMq9UWVBqfp</span>
    </div>
    <h3 style="margin-left: 30px">2. 如需验证，选择短信一键验证，发送验证码后，可刷新本页面查看最新验证码：</h3>

    <div id="div">
        <div>
            <div
                    id="scrollDiv">
                <dgiv id="progress" class="wyui-progress"></dgiv>
                <table class="table table- bordered text-center table-width"
                       style="width: 90%;table-layout: auto;margin-left: 30px">
                    <thead>
                    <tr>
                        <th style="min-width: 130px;height: 30px;font-weight: bold">时间</th>
                        <th style="width: 230px;height: 30px;font-weight: bold">验证码</th>
                        <th style="width: 180px;height: 30px;font-weight: bold">发送人</th>
                        <th style="height: 30px;font-weight: bold">短信原文</th>
                    </tr>
                    </thead>
                    <tbody id="tbList">
                    <tr v-for="(item,i) in list" style="height: 20px">
                        <template v-if="i==0">
                            <td style="font-weight: bold">{{item.time}}</td>
                            <td style="color: #2a8cec;font-weight: bold">{{item.code}}</td>
                            <td style="font-weight: bold">{{item.sender}}</td>
                            <td style="font-weight: bold;text-align: left">{{item.content}}</td>
                        </template>
                        <template v-else>
                            <td style="color: #999999">{{item.time}}</td>
                            <td style="color: #999999">{{item.code}}</td>
                            <td style="color: #999999">{{item.sender}}</td>
                            <td style="color: #999999;text-align: left">{{item.content}}</td>
                        </template>
                    </tr>
                    </tbody>
                </table>

            </div>
        </div>

    </div>

</section>

<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            list: []
        },
        methods: {
            getVertifyList() {
                var that = this
                $.ajax({
                    url: "http://oaapi.yingfeng365.com/jsyf-oa/vertify/getByPage.json",
                    contentType: 'application/json;charset=utf-8',
                    type: "POST",
                    data: "{}",
                    success: function (r) {
                        var data = JSON.parse(r)
                        console.log(data)
                        that.list = data.data.sendData.result
                    },
                    error: function (e) {
                        console.log(e)
                        alert(e.responseText)
                    }
                });
            },
        },
        mounted: function () {
            this.getVertifyList()
        },
    })
</script>
</body>
</html>